{extend name='extra@admin/content'}

{block name="button"}
<!--<div class="nowrap pull-right" style="margin-top:10px">-->
    <!--<button data-modal='{:url("$classuri/add_edit_level")}' data-title="添加等级" class='layui-btn layui-btn-small'>-->
        <!--<i class='fa fa-plus'></i> 添加等级-->
    <!--</button>-->
<!--</div>-->
{/block}
{block name="content"}
<form onsubmit="return false;" data-auto="true" method="post">
    {if empty($list)}
    <p class="help-block text-center well">等级规则！</p>
    {else}

     <table class="layui-table" lay-skin="line" lay-size="sm">
        <thead>
            <tr>
                <th class='list-table-check-td'>
                    <input data-none-auto="" data-check-target='.list-check-box' type='checkbox'/>
                </th>
                <th class='text-left nowrap'>等级名称</th>
              <th class='text-left nowrap'>logo</th>
              <!--<th class='text-left nowrap'>背景图片</th>-->
                <!--<th class='text-left nowrap'>简介</th>-->
                <!--<th class='text-left nowrap'>颜色</th>-->
                <th class='text-left nowrap'>升级金额</th>
                <th class='text-left nowrap'>操作</th>
            </tr>
        </thead>
        <tbody>
            {foreach $list as $key=>$vo}
            <tr>
                <td class='list-table-check-td'>
                    <input class="list-check-box" value='{$vo.id}' type='checkbox'/>
                </td>
                <td class='text-left nowrap'>
                   {$vo.title}
                </td>
                <td class='text-left nowrap'>
                   <img src="{$vo.logo}" whdth="40px;" height="40px;">
                </td>
                <!--<td class='text-left nowrap'>-->
                   <!--<img src="{$vo.image}" whdth="40px;" height="40px;">-->
                <!--</td>-->
                <!--<td class='text-left nowrap'>-->
                     <!--{:html_decode($vo.detail)}-->
                <!--</td>-->
                <!--<td class='text-left nowrap'>-->
                   <!--{$vo.css_color}-->
                <!--</td>-->
                <td class='text-left nowrap'>
                     {$vo.score}
                </td>

                <td class='text-left nowrap'>
                    {if auth("$classuri/level_editor")}
                    <span class="text-explode">|</span>
                    <a data-modal='{:url("$classuri/add_edit_level")}?id={$vo.id}' href="javascript:void(0)">编辑</a>
                    {/if}
                </td>
            </tr>
            {/foreach}
        </tbody>
    </table>
        
    {if isset($page)}<p>{$page}</p>{/if}
    {/if}
    <script>
       
    </script>
</form>
{/block}